package com.myh.common.constant;

/**
 * @Description: // 类说明，在创建类时要填写
 * @ClassName: WareConstant    // 类名，会自动填充
 * @Author: MYH          // 创建者
 * @Date: 2024/2/13 15:10   // 时间
 * @Version: 1.0     // 版本
 */
public class WareConstant {

    public enum PurchaseStatusEnum {
        CREATED("新建", 0),
        ASSIGNED("已分配", 1),
        RECEIVE("已领取", 2),
        FINISH("已完成", 3),
        HAS_ERROE("有异常", 4);


        private String name;
        private Integer statusCode;

        private PurchaseStatusEnum(String name, Integer statusCode) {
            this.name = name;
            this.statusCode = statusCode;
        }

        public Integer getStatusCode() {
            return statusCode;
        }

        public String getName() {
            return name;
        }
    }


    public enum PurchaseDetailStatusEnum {
        CREATED("新建", 0),
        ASSIGNED("已分配", 1),
        BUYING("正在采购", 2),
        FINISH("已完成", 3),
        HAS_ERROE("采购失败", 4);


        private String name;
        private Integer statusCode;

        private PurchaseDetailStatusEnum(String name, Integer statusCode) {
            this.name = name;
            this.statusCode = statusCode;
        }

        public Integer getStatusCode() {
            return statusCode;
        }

        public String getName() {
            return name;
        }
    }
}
